// Lean compiler output
// Module: Init.Data.ToString.Name
// Imports: public import Init.Data.String.Substring import Init.Data.String.TakeDrop import Init.Data.String.Search
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static uint32_t l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__0;
static lean_object* l_Lean_Name_escapePart___closed__2;
uint8_t lean_uint32_to_uint8(uint32_t);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(uint8_t, lean_object*, uint8_t);
lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toString___boxed(lean_object*, lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__2;
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg(lean_object*, lean_object*);
lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__3;
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_escapePart___boxed(lean_object*, lean_object*);
lean_object* l_String_Slice_Pattern_ForwardCharPredSearcher_iter___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(lean_object*, uint8_t, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0;
lean_object* l_panic___redArg(lean_object*, lean_object*);
extern uint32_t l_Lean_idBeginEscape;
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* lean_string_push(lean_object*, uint32_t);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg(lean_object*);
uint32_t lean_string_utf8_get_fast(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*);
lean_object* l_Nat_reprFast(lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___redArg___boxed(lean_object*);
extern lean_object* l_String_instInhabitedSlice;
LEAN_EXPORT uint8_t l_Lean_Name_toStringWithSep___lam__0(lean_object*);
uint8_t l_String_Slice_contains___redArg(lean_object*, lean_object*, lean_object*);
uint8_t lean_uint32_dec_le(uint32_t, uint32_t);
lean_object* l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(lean_object*);
uint8_t lean_string_get_byte_fast(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___lam__0___boxed(lean_object*);
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3;
static lean_object* l_Lean_Name_escapePart___closed__1;
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax(lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___redArg(lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__5;
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape___boxed(lean_object*);
static uint32_t l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__3;
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4;
lean_object* l_Lean_Name_getRoot(lean_object*);
LEAN_EXPORT lean_object* l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3___boxed(lean_object*);
static lean_object* l_Lean_Name_toStringWithSep___closed__0;
lean_object* l_Lean_isIdEndEscape___boxed(lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___redArg___boxed(lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(lean_object*, lean_object*);
lean_object* l_Lean_isIdRest___boxed(lean_object*);
static lean_object* l_Lean_Name_toStringWithToken___closed__0;
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_Pos_get_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3(lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1;
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_instToString;
uint8_t l_Lean_isLetterLike(uint32_t);
uint8_t l_Lean_Name_hasMacroScopes(lean_object*);
extern uint32_t l_Lean_idEndEscape;
LEAN_EXPORT lean_object* l_Lean_Name_instToString___lam__0(lean_object*);
uint8_t lean_string_is_valid_pos(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___boxed(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3;
uint8_t l_Lean_isSubScriptAlnum(uint32_t);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1;
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
LEAN_EXPORT lean_object* l_Lean_Name_escapePart(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_panic___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__5(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken(lean_object*, uint8_t, lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5;
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape(lean_object*);
uint8_t lean_uint8_dec_le(uint8_t, uint8_t);
uint8_t lean_string_memcmp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2;
uint8_t lean_is_inaccessible_user_name(lean_object*);
static lean_object* l_Lean_Name_escapePart___closed__0;
lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_Slice_Pattern_ForwardCharPredSearcher_instIteratorLoopIdSearchStep(lean_object*, lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__4;
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4;
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2;
lean_object* lean_string_append(lean_object*, lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__1;
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3(lean_object*, lean_object*);
uint8_t lean_uint8_dec_eq(uint8_t, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0;
lean_object* l_Substring_Raw_nextn(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape(lean_object*, lean_object*);
static uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___boxed(lean_object*);
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 95;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__1() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 39;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__2() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 33;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__3() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 63;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__4() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 48;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__5() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 57;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 65;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 90;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 97;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
static uint8_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9() {
_start:
{
uint32_t x_1; uint8_t x_2; 
x_1 = 122;
x_2 = lean_uint32_to_uint8(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_7; lean_object* x_9; uint8_t x_10; 
x_9 = lean_string_utf8_byte_size(x_1);
x_10 = lean_nat_dec_lt(x_2, x_9);
lean_dec(x_9);
if (x_10 == 0)
{
uint8_t x_11; 
lean_dec(x_2);
x_11 = 1;
return x_11;
}
else
{
uint8_t x_12; uint8_t x_13; uint8_t x_23; uint8_t x_29; uint8_t x_35; uint8_t x_36; 
lean_inc(x_2);
x_12 = lean_string_get_byte_fast(x_1, x_2);
x_35 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_36 = lean_uint8_dec_le(x_35, x_12);
if (x_36 == 0)
{
x_29 = x_36;
goto block_34;
}
else
{
uint8_t x_37; uint8_t x_38; 
x_37 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_38 = lean_uint8_dec_le(x_12, x_37);
x_29 = x_38;
goto block_34;
}
block_22:
{
if (x_13 == 0)
{
uint8_t x_14; uint8_t x_15; 
x_14 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_15 = lean_uint8_dec_eq(x_12, x_14);
if (x_15 == 0)
{
uint8_t x_16; uint8_t x_17; 
x_16 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__1;
x_17 = lean_uint8_dec_eq(x_12, x_16);
if (x_17 == 0)
{
uint8_t x_18; uint8_t x_19; 
x_18 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__2;
x_19 = lean_uint8_dec_eq(x_12, x_18);
if (x_19 == 0)
{
uint8_t x_20; uint8_t x_21; 
x_20 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__3;
x_21 = lean_uint8_dec_eq(x_12, x_20);
x_7 = x_21;
goto block_8;
}
else
{
x_7 = x_19;
goto block_8;
}
}
else
{
x_7 = x_17;
goto block_8;
}
}
else
{
x_7 = x_15;
goto block_8;
}
}
else
{
goto block_6;
}
}
block_28:
{
if (x_23 == 0)
{
uint8_t x_24; uint8_t x_25; 
x_24 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__4;
x_25 = lean_uint8_dec_le(x_24, x_12);
if (x_25 == 0)
{
x_13 = x_25;
goto block_22;
}
else
{
uint8_t x_26; uint8_t x_27; 
x_26 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__5;
x_27 = lean_uint8_dec_le(x_12, x_26);
x_13 = x_27;
goto block_22;
}
}
else
{
goto block_6;
}
}
block_34:
{
if (x_29 == 0)
{
uint8_t x_30; uint8_t x_31; 
x_30 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_31 = lean_uint8_dec_le(x_30, x_12);
if (x_31 == 0)
{
x_23 = x_31;
goto block_28;
}
else
{
uint8_t x_32; uint8_t x_33; 
x_32 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_33 = lean_uint8_dec_le(x_12, x_32);
x_23 = x_33;
goto block_28;
}
}
else
{
goto block_6;
}
}
}
block_6:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_unsigned_to_nat(1u);
x_4 = lean_nat_add(x_2, x_3);
lean_dec(x_2);
x_2 = x_4;
goto _start;
}
block_8:
{
if (x_7 == 0)
{
lean_dec(x_2);
return x_7;
}
else
{
goto block_6;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_6; uint8_t x_7; uint8_t x_8; uint8_t x_12; uint8_t x_18; uint8_t x_19; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_string_get_byte_fast(x_1, x_6);
x_18 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_19 = lean_uint8_dec_le(x_18, x_7);
if (x_19 == 0)
{
x_12 = x_19;
goto block_17;
}
else
{
uint8_t x_20; uint8_t x_21; 
x_20 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_21 = lean_uint8_dec_le(x_7, x_20);
x_12 = x_21;
goto block_17;
}
block_5:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_unsigned_to_nat(1u);
x_4 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_3);
return x_4;
}
block_11:
{
if (x_8 == 0)
{
uint8_t x_9; uint8_t x_10; 
x_9 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_10 = lean_uint8_dec_eq(x_7, x_9);
if (x_10 == 0)
{
return x_10;
}
else
{
goto block_5;
}
}
else
{
goto block_5;
}
}
block_17:
{
if (x_12 == 0)
{
uint8_t x_13; uint8_t x_14; 
x_13 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_14 = lean_uint8_dec_le(x_13, x_7);
if (x_14 == 0)
{
x_8 = x_14;
goto block_11;
}
else
{
uint8_t x_15; uint8_t x_16; 
x_15 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_16 = lean_uint8_dec_le(x_7, x_15);
x_8 = x_16;
goto block_11;
}
}
else
{
goto block_5;
}
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___redArg(lean_object* x_1) {
_start:
{
lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_11; uint8_t x_17; uint8_t x_18; 
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_get_byte_fast(x_1, x_5);
x_17 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_18 = lean_uint8_dec_le(x_17, x_6);
if (x_18 == 0)
{
x_11 = x_18;
goto block_16;
}
else
{
uint8_t x_19; uint8_t x_20; 
x_19 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_20 = lean_uint8_dec_le(x_6, x_19);
x_11 = x_20;
goto block_16;
}
block_4:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_unsigned_to_nat(1u);
x_3 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_2);
return x_3;
}
block_10:
{
if (x_7 == 0)
{
uint8_t x_8; uint8_t x_9; 
x_8 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_9 = lean_uint8_dec_eq(x_6, x_8);
if (x_9 == 0)
{
return x_9;
}
else
{
goto block_4;
}
}
else
{
goto block_4;
}
}
block_16:
{
if (x_11 == 0)
{
uint8_t x_12; uint8_t x_13; 
x_12 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_13 = lean_uint8_dec_le(x_12, x_6);
if (x_13 == 0)
{
x_7 = x_13;
goto block_10;
}
else
{
uint8_t x_14; uint8_t x_15; 
x_14 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_15 = lean_uint8_dec_le(x_6, x_14);
x_7 = x_15;
goto block_10;
}
}
else
{
goto block_4;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii(x_1, x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___redArg___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAscii___redArg(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Init.Data.Option.BasicAux", 25, 25);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Option.get!", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("value is none", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2;
x_2 = lean_unsigned_to_nat(14u);
x_3 = lean_unsigned_to_nat(22u);
x_4 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1;
x_5 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0;
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
return x_6;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_isIdRest___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_31; uint32_t x_33; uint8_t x_34; uint32_t x_39; uint8_t x_40; uint32_t x_46; uint8_t x_52; lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_70; uint8_t x_76; uint8_t x_77; 
x_64 = lean_unsigned_to_nat(0u);
x_65 = lean_string_get_byte_fast(x_1, x_64);
x_76 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_77 = lean_uint8_dec_le(x_76, x_65);
if (x_77 == 0)
{
x_70 = x_77;
goto block_75;
}
else
{
uint8_t x_78; uint8_t x_79; 
x_78 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_79 = lean_uint8_dec_le(x_65, x_78);
x_70 = x_79;
goto block_75;
}
block_12:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
lean_inc_ref(x_3);
x_6 = l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(x_3);
lean_inc(x_4);
x_7 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_5, x_3, x_6, x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_5);
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 2);
lean_inc(x_9);
lean_dec_ref(x_7);
x_10 = lean_nat_sub(x_9, x_8);
lean_dec(x_8);
lean_dec(x_9);
x_11 = lean_nat_dec_eq(x_10, x_4);
lean_dec(x_4);
lean_dec(x_10);
return x_11;
}
block_18:
{
lean_object* x_16; lean_object* x_17; 
x_16 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3;
x_17 = l_panic___redArg(x_13, x_16);
x_3 = x_14;
x_4 = x_15;
x_5 = x_17;
goto block_12;
}
block_30:
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_string_utf8_byte_size(x_1);
lean_inc(x_20);
lean_inc_ref(x_1);
x_21 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_21, 0, x_1);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_20);
x_22 = lean_unsigned_to_nat(1u);
x_23 = l_Substring_Raw_nextn(x_21, x_22, x_19);
lean_dec_ref(x_21);
x_24 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4;
x_25 = l_String_instInhabitedSlice;
x_26 = lean_string_is_valid_pos(x_1, x_23);
if (x_26 == 0)
{
lean_dec(x_23);
lean_dec(x_20);
lean_dec_ref(x_1);
x_13 = x_25;
x_14 = x_24;
x_15 = x_19;
goto block_18;
}
else
{
uint8_t x_27; 
x_27 = lean_string_is_valid_pos(x_1, x_20);
if (x_27 == 0)
{
lean_dec(x_23);
lean_dec(x_20);
lean_dec_ref(x_1);
x_13 = x_25;
x_14 = x_24;
x_15 = x_19;
goto block_18;
}
else
{
uint8_t x_28; 
x_28 = lean_nat_dec_le(x_23, x_20);
if (x_28 == 0)
{
lean_dec(x_23);
lean_dec(x_20);
lean_dec_ref(x_1);
x_13 = x_25;
x_14 = x_24;
x_15 = x_19;
goto block_18;
}
else
{
lean_object* x_29; 
x_29 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_29, 0, x_1);
lean_ctor_set(x_29, 1, x_23);
lean_ctor_set(x_29, 2, x_20);
x_3 = x_24;
x_4 = x_19;
x_5 = x_29;
goto block_12;
}
}
}
}
block_32:
{
if (x_31 == 0)
{
lean_dec_ref(x_1);
return x_31;
}
else
{
goto block_30;
}
}
block_38:
{
if (x_34 == 0)
{
uint32_t x_35; uint8_t x_36; 
x_35 = 95;
x_36 = lean_uint32_dec_eq(x_33, x_35);
if (x_36 == 0)
{
uint8_t x_37; 
x_37 = l_Lean_isLetterLike(x_33);
x_31 = x_37;
goto block_32;
}
else
{
x_31 = x_36;
goto block_32;
}
}
else
{
goto block_30;
}
}
block_45:
{
if (x_40 == 0)
{
uint32_t x_41; uint8_t x_42; 
x_41 = 97;
x_42 = lean_uint32_dec_le(x_41, x_39);
if (x_42 == 0)
{
x_33 = x_39;
x_34 = x_42;
goto block_38;
}
else
{
uint32_t x_43; uint8_t x_44; 
x_43 = 122;
x_44 = lean_uint32_dec_le(x_39, x_43);
x_33 = x_39;
x_34 = x_44;
goto block_38;
}
}
else
{
goto block_30;
}
}
block_51:
{
uint32_t x_47; uint8_t x_48; 
x_47 = 65;
x_48 = lean_uint32_dec_le(x_47, x_46);
if (x_48 == 0)
{
x_39 = x_46;
x_40 = x_48;
goto block_45;
}
else
{
uint32_t x_49; uint8_t x_50; 
x_49 = 90;
x_50 = lean_uint32_dec_le(x_46, x_49);
x_39 = x_46;
x_40 = x_50;
goto block_45;
}
}
block_60:
{
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_string_utf8_byte_size(x_1);
lean_inc_ref(x_1);
x_55 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_55, 0, x_1);
lean_ctor_set(x_55, 1, x_53);
lean_ctor_set(x_55, 2, x_54);
x_56 = l_String_Slice_Pos_get_x3f(x_55, x_53);
lean_dec_ref(x_55);
if (lean_obj_tag(x_56) == 0)
{
uint32_t x_57; 
x_57 = 65;
x_46 = x_57;
goto block_51;
}
else
{
lean_object* x_58; uint32_t x_59; 
x_58 = lean_ctor_get(x_56, 0);
lean_inc(x_58);
lean_dec_ref(x_56);
x_59 = lean_unbox_uint32(x_58);
lean_dec(x_58);
x_46 = x_59;
goto block_51;
}
}
else
{
lean_dec_ref(x_1);
return x_52;
}
}
block_63:
{
lean_object* x_61; uint8_t x_62; 
x_61 = lean_unsigned_to_nat(1u);
x_62 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_61);
x_52 = x_62;
goto block_60;
}
block_69:
{
if (x_66 == 0)
{
uint8_t x_67; uint8_t x_68; 
x_67 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_68 = lean_uint8_dec_eq(x_65, x_67);
if (x_68 == 0)
{
x_52 = x_68;
goto block_60;
}
else
{
goto block_63;
}
}
else
{
goto block_63;
}
}
block_75:
{
if (x_70 == 0)
{
uint8_t x_71; uint8_t x_72; 
x_71 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_72 = lean_uint8_dec_le(x_71, x_65);
if (x_72 == 0)
{
x_66 = x_72;
goto block_69;
}
else
{
uint8_t x_73; uint8_t x_74; 
x_73 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_74 = lean_uint8_dec_le(x_65, x_73);
x_66 = x_74;
goto block_69;
}
}
else
{
goto block_63;
}
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_30; uint32_t x_32; uint8_t x_33; uint32_t x_38; uint8_t x_39; uint32_t x_45; uint8_t x_51; lean_object* x_63; uint8_t x_64; uint8_t x_65; uint8_t x_69; uint8_t x_75; uint8_t x_76; 
x_63 = lean_unsigned_to_nat(0u);
x_64 = lean_string_get_byte_fast(x_1, x_63);
x_75 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_76 = lean_uint8_dec_le(x_75, x_64);
if (x_76 == 0)
{
x_69 = x_76;
goto block_74;
}
else
{
uint8_t x_77; uint8_t x_78; 
x_77 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_78 = lean_uint8_dec_le(x_64, x_77);
x_69 = x_78;
goto block_74;
}
block_11:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
lean_inc_ref(x_2);
x_5 = l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(x_2);
lean_inc(x_3);
x_6 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_4, x_2, x_5, x_3);
lean_dec_ref(x_2);
lean_dec_ref(x_4);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 2);
lean_inc(x_8);
lean_dec_ref(x_6);
x_9 = lean_nat_sub(x_8, x_7);
lean_dec(x_7);
lean_dec(x_8);
x_10 = lean_nat_dec_eq(x_9, x_3);
lean_dec(x_3);
lean_dec(x_9);
return x_10;
}
block_17:
{
lean_object* x_15; lean_object* x_16; 
x_15 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3;
x_16 = l_panic___redArg(x_12, x_15);
x_2 = x_13;
x_3 = x_14;
x_4 = x_16;
goto block_11;
}
block_29:
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_string_utf8_byte_size(x_1);
lean_inc(x_19);
lean_inc_ref(x_1);
x_20 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_20, 0, x_1);
lean_ctor_set(x_20, 1, x_18);
lean_ctor_set(x_20, 2, x_19);
x_21 = lean_unsigned_to_nat(1u);
x_22 = l_Substring_Raw_nextn(x_20, x_21, x_18);
lean_dec_ref(x_20);
x_23 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4;
x_24 = l_String_instInhabitedSlice;
x_25 = lean_string_is_valid_pos(x_1, x_22);
if (x_25 == 0)
{
lean_dec(x_22);
lean_dec(x_19);
lean_dec_ref(x_1);
x_12 = x_24;
x_13 = x_23;
x_14 = x_18;
goto block_17;
}
else
{
uint8_t x_26; 
x_26 = lean_string_is_valid_pos(x_1, x_19);
if (x_26 == 0)
{
lean_dec(x_22);
lean_dec(x_19);
lean_dec_ref(x_1);
x_12 = x_24;
x_13 = x_23;
x_14 = x_18;
goto block_17;
}
else
{
uint8_t x_27; 
x_27 = lean_nat_dec_le(x_22, x_19);
if (x_27 == 0)
{
lean_dec(x_22);
lean_dec(x_19);
lean_dec_ref(x_1);
x_12 = x_24;
x_13 = x_23;
x_14 = x_18;
goto block_17;
}
else
{
lean_object* x_28; 
x_28 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_28, 0, x_1);
lean_ctor_set(x_28, 1, x_22);
lean_ctor_set(x_28, 2, x_19);
x_2 = x_23;
x_3 = x_18;
x_4 = x_28;
goto block_11;
}
}
}
}
block_31:
{
if (x_30 == 0)
{
lean_dec_ref(x_1);
return x_30;
}
else
{
goto block_29;
}
}
block_37:
{
if (x_33 == 0)
{
uint32_t x_34; uint8_t x_35; 
x_34 = 95;
x_35 = lean_uint32_dec_eq(x_32, x_34);
if (x_35 == 0)
{
uint8_t x_36; 
x_36 = l_Lean_isLetterLike(x_32);
x_30 = x_36;
goto block_31;
}
else
{
x_30 = x_35;
goto block_31;
}
}
else
{
goto block_29;
}
}
block_44:
{
if (x_39 == 0)
{
uint32_t x_40; uint8_t x_41; 
x_40 = 97;
x_41 = lean_uint32_dec_le(x_40, x_38);
if (x_41 == 0)
{
x_32 = x_38;
x_33 = x_41;
goto block_37;
}
else
{
uint32_t x_42; uint8_t x_43; 
x_42 = 122;
x_43 = lean_uint32_dec_le(x_38, x_42);
x_32 = x_38;
x_33 = x_43;
goto block_37;
}
}
else
{
goto block_29;
}
}
block_50:
{
uint32_t x_46; uint8_t x_47; 
x_46 = 65;
x_47 = lean_uint32_dec_le(x_46, x_45);
if (x_47 == 0)
{
x_38 = x_45;
x_39 = x_47;
goto block_44;
}
else
{
uint32_t x_48; uint8_t x_49; 
x_48 = 90;
x_49 = lean_uint32_dec_le(x_45, x_48);
x_38 = x_45;
x_39 = x_49;
goto block_44;
}
}
block_59:
{
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_52 = lean_unsigned_to_nat(0u);
x_53 = lean_string_utf8_byte_size(x_1);
lean_inc_ref(x_1);
x_54 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_54, 0, x_1);
lean_ctor_set(x_54, 1, x_52);
lean_ctor_set(x_54, 2, x_53);
x_55 = l_String_Slice_Pos_get_x3f(x_54, x_52);
lean_dec_ref(x_54);
if (lean_obj_tag(x_55) == 0)
{
uint32_t x_56; 
x_56 = 65;
x_45 = x_56;
goto block_50;
}
else
{
lean_object* x_57; uint32_t x_58; 
x_57 = lean_ctor_get(x_55, 0);
lean_inc(x_57);
lean_dec_ref(x_55);
x_58 = lean_unbox_uint32(x_57);
lean_dec(x_57);
x_45 = x_58;
goto block_50;
}
}
else
{
lean_dec_ref(x_1);
return x_51;
}
}
block_62:
{
lean_object* x_60; uint8_t x_61; 
x_60 = lean_unsigned_to_nat(1u);
x_61 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_60);
x_51 = x_61;
goto block_59;
}
block_68:
{
if (x_65 == 0)
{
uint8_t x_66; uint8_t x_67; 
x_66 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_67 = lean_uint8_dec_eq(x_64, x_66);
if (x_67 == 0)
{
x_51 = x_67;
goto block_59;
}
else
{
goto block_62;
}
}
else
{
goto block_62;
}
}
block_74:
{
if (x_69 == 0)
{
uint8_t x_70; uint8_t x_71; 
x_70 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_71 = lean_uint8_dec_le(x_70, x_64);
if (x_71 == 0)
{
x_65 = x_71;
goto block_68;
}
else
{
uint8_t x_72; uint8_t x_73; 
x_72 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_73 = lean_uint8_dec_le(x_64, x_72);
x_65 = x_73;
goto block_68;
}
}
else
{
goto block_62;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___redArg___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___redArg(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static uint32_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__0() {
_start:
{
uint32_t x_1; 
x_1 = l_Lean_idBeginEscape;
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2() {
_start:
{
uint32_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__0;
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1;
x_3 = lean_string_push(x_2, x_1);
return x_3;
}
}
static uint32_t _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__3() {
_start:
{
uint32_t x_1; 
x_1 = l_Lean_idEndEscape;
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4() {
_start:
{
uint32_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__3;
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1;
x_3 = lean_string_push(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
x_3 = lean_string_append(x_2, x_1);
x_4 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
x_5 = lean_string_append(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_escape___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Name_escapePart___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_isIdEndEscape___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Name_escapePart___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Name_escapePart___closed__0;
x_2 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharPredSearcher_instIteratorLoopIdSearchStep), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Name_escapePart___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Name_escapePart___closed__0;
x_2 = lean_alloc_closure((void*)(l_String_Slice_Pattern_ForwardCharPredSearcher_iter___boxed), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_escapePart(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_45; uint32_t x_47; uint8_t x_48; uint32_t x_53; uint8_t x_54; uint32_t x_60; uint8_t x_66; lean_object* x_79; lean_object* x_80; uint8_t x_81; 
x_79 = lean_unsigned_to_nat(0u);
x_80 = lean_string_utf8_byte_size(x_1);
x_81 = lean_nat_dec_lt(x_79, x_80);
lean_dec(x_80);
if (x_81 == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 
x_82 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
x_83 = lean_string_append(x_82, x_1);
lean_dec_ref(x_1);
x_84 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
x_85 = lean_string_append(x_83, x_84);
x_86 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_86, 0, x_85);
return x_86;
}
else
{
if (x_2 == 0)
{
uint8_t x_87; uint8_t x_88; uint8_t x_92; uint8_t x_98; uint8_t x_99; 
x_87 = lean_string_get_byte_fast(x_1, x_79);
x_98 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_99 = lean_uint8_dec_le(x_98, x_87);
if (x_99 == 0)
{
x_92 = x_99;
goto block_97;
}
else
{
uint8_t x_100; uint8_t x_101; 
x_100 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_101 = lean_uint8_dec_le(x_87, x_100);
x_92 = x_101;
goto block_97;
}
block_91:
{
if (x_88 == 0)
{
uint8_t x_89; uint8_t x_90; 
x_89 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_90 = lean_uint8_dec_eq(x_87, x_89);
if (x_90 == 0)
{
x_66 = x_90;
goto block_75;
}
else
{
goto block_78;
}
}
else
{
goto block_78;
}
}
block_97:
{
if (x_92 == 0)
{
uint8_t x_93; uint8_t x_94; 
x_93 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_94 = lean_uint8_dec_le(x_93, x_87);
if (x_94 == 0)
{
x_88 = x_94;
goto block_91;
}
else
{
uint8_t x_95; uint8_t x_96; 
x_95 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_96 = lean_uint8_dec_le(x_87, x_95);
x_88 = x_96;
goto block_91;
}
}
else
{
goto block_78;
}
}
}
else
{
goto block_15;
}
}
block_15:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_3 = l_Lean_Name_escapePart___closed__1;
x_4 = l_Lean_Name_escapePart___closed__2;
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_byte_size(x_1);
lean_inc_ref(x_1);
x_7 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 2, x_6);
x_8 = l_String_Slice_contains___redArg(x_3, x_7, x_4);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
x_10 = lean_string_append(x_9, x_1);
lean_dec_ref(x_1);
x_11 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
x_12 = lean_string_append(x_10, x_11);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
else
{
lean_object* x_14; 
lean_dec_ref(x_1);
x_14 = lean_box(0);
return x_14;
}
}
block_26:
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
lean_inc_ref(x_16);
x_19 = l_String_Slice_Pattern_ForwardCharPredSearcher_instForwardPatternForallCharBool(x_16);
lean_inc(x_17);
x_20 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go(lean_box(0), x_18, x_16, x_19, x_17);
lean_dec_ref(x_16);
lean_dec_ref(x_18);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 2);
lean_inc(x_22);
lean_dec_ref(x_20);
x_23 = lean_nat_sub(x_22, x_21);
lean_dec(x_21);
lean_dec(x_22);
x_24 = lean_nat_dec_eq(x_23, x_17);
lean_dec(x_17);
lean_dec(x_23);
if (x_24 == 0)
{
goto block_15;
}
else
{
lean_object* x_25; 
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_1);
return x_25;
}
}
block_32:
{
lean_object* x_30; lean_object* x_31; 
x_30 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3;
x_31 = l_panic___redArg(x_29, x_30);
x_16 = x_27;
x_17 = x_28;
x_18 = x_31;
goto block_26;
}
block_44:
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_33 = lean_unsigned_to_nat(0u);
x_34 = lean_string_utf8_byte_size(x_1);
lean_inc(x_34);
lean_inc_ref(x_1);
x_35 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_35, 0, x_1);
lean_ctor_set(x_35, 1, x_33);
lean_ctor_set(x_35, 2, x_34);
x_36 = lean_unsigned_to_nat(1u);
x_37 = l_Substring_Raw_nextn(x_35, x_36, x_33);
lean_dec_ref(x_35);
x_38 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4;
x_39 = l_String_instInhabitedSlice;
x_40 = lean_string_is_valid_pos(x_1, x_37);
if (x_40 == 0)
{
lean_dec(x_37);
lean_dec(x_34);
x_27 = x_38;
x_28 = x_33;
x_29 = x_39;
goto block_32;
}
else
{
uint8_t x_41; 
x_41 = lean_string_is_valid_pos(x_1, x_34);
if (x_41 == 0)
{
lean_dec(x_37);
lean_dec(x_34);
x_27 = x_38;
x_28 = x_33;
x_29 = x_39;
goto block_32;
}
else
{
uint8_t x_42; 
x_42 = lean_nat_dec_le(x_37, x_34);
if (x_42 == 0)
{
lean_dec(x_37);
lean_dec(x_34);
x_27 = x_38;
x_28 = x_33;
x_29 = x_39;
goto block_32;
}
else
{
lean_object* x_43; 
lean_inc_ref(x_1);
x_43 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_43, 0, x_1);
lean_ctor_set(x_43, 1, x_37);
lean_ctor_set(x_43, 2, x_34);
x_16 = x_38;
x_17 = x_33;
x_18 = x_43;
goto block_26;
}
}
}
}
block_46:
{
if (x_45 == 0)
{
goto block_15;
}
else
{
goto block_44;
}
}
block_52:
{
if (x_48 == 0)
{
uint32_t x_49; uint8_t x_50; 
x_49 = 95;
x_50 = lean_uint32_dec_eq(x_47, x_49);
if (x_50 == 0)
{
uint8_t x_51; 
x_51 = l_Lean_isLetterLike(x_47);
x_45 = x_51;
goto block_46;
}
else
{
x_45 = x_50;
goto block_46;
}
}
else
{
goto block_44;
}
}
block_59:
{
if (x_54 == 0)
{
uint32_t x_55; uint8_t x_56; 
x_55 = 97;
x_56 = lean_uint32_dec_le(x_55, x_53);
if (x_56 == 0)
{
x_47 = x_53;
x_48 = x_56;
goto block_52;
}
else
{
uint32_t x_57; uint8_t x_58; 
x_57 = 122;
x_58 = lean_uint32_dec_le(x_53, x_57);
x_47 = x_53;
x_48 = x_58;
goto block_52;
}
}
else
{
goto block_44;
}
}
block_65:
{
uint32_t x_61; uint8_t x_62; 
x_61 = 65;
x_62 = lean_uint32_dec_le(x_61, x_60);
if (x_62 == 0)
{
x_53 = x_60;
x_54 = x_62;
goto block_59;
}
else
{
uint32_t x_63; uint8_t x_64; 
x_63 = 90;
x_64 = lean_uint32_dec_le(x_60, x_63);
x_53 = x_60;
x_54 = x_64;
goto block_59;
}
}
block_75:
{
if (x_66 == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_string_utf8_byte_size(x_1);
lean_inc_ref(x_1);
x_69 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_69, 0, x_1);
lean_ctor_set(x_69, 1, x_67);
lean_ctor_set(x_69, 2, x_68);
x_70 = l_String_Slice_Pos_get_x3f(x_69, x_67);
lean_dec_ref(x_69);
if (lean_obj_tag(x_70) == 0)
{
uint32_t x_71; 
x_71 = 65;
x_60 = x_71;
goto block_65;
}
else
{
lean_object* x_72; uint32_t x_73; 
x_72 = lean_ctor_get(x_70, 0);
lean_inc(x_72);
lean_dec_ref(x_70);
x_73 = lean_unbox_uint32(x_72);
lean_dec(x_72);
x_60 = x_73;
goto block_65;
}
}
else
{
lean_object* x_74; 
x_74 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_74, 0, x_1);
return x_74;
}
}
block_78:
{
lean_object* x_76; uint8_t x_77; 
x_76 = lean_unsigned_to_nat(1u);
x_77 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_1, x_76);
x_66 = x_77;
goto block_75;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Name_escapePart___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lean_Name_escapePart(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_1, 1);
x_7 = lean_ctor_get(x_1, 2);
x_8 = lean_nat_sub(x_7, x_6);
x_9 = lean_nat_dec_eq(x_3, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; uint32_t x_11; uint32_t x_12; uint8_t x_13; 
x_10 = lean_nat_add(x_6, x_3);
lean_dec(x_3);
x_11 = lean_string_utf8_get_fast(x_5, x_10);
x_12 = 187;
x_13 = lean_uint32_dec_eq(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_string_utf8_next_fast(x_5, x_10);
lean_dec(x_10);
x_15 = lean_nat_sub(x_14, x_6);
lean_dec(x_14);
{
lean_object* _tmp_2 = x_15;
uint8_t _tmp_3 = x_2;
x_3 = _tmp_2;
x_4 = _tmp_3;
}
goto _start;
}
else
{
lean_dec(x_10);
return x_13;
}
}
else
{
lean_dec(x_3);
return x_4;
}
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; 
x_3 = 0;
x_4 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg(x_1, x_3, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; 
x_9 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__5(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_String_instInhabitedSlice;
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_nat_sub(x_4, x_3);
x_7 = lean_nat_dec_eq(x_5, x_6);
lean_dec(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; uint32_t x_14; uint8_t x_15; uint8_t x_28; uint8_t x_35; uint32_t x_42; uint8_t x_43; 
x_8 = lean_string_utf8_next_fast(x_2, x_3);
x_9 = lean_nat_sub(x_8, x_3);
lean_dec(x_8);
x_14 = lean_string_utf8_get_fast(x_2, x_3);
x_42 = 65;
x_43 = lean_uint32_dec_le(x_42, x_14);
if (x_43 == 0)
{
x_35 = x_43;
goto block_41;
}
else
{
uint32_t x_44; uint8_t x_45; 
x_44 = 90;
x_45 = lean_uint32_dec_le(x_14, x_44);
x_35 = x_45;
goto block_41;
}
block_13:
{
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_9);
x_11 = lean_box(0);
return x_11;
}
else
{
lean_object* x_12; 
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_9);
return x_12;
}
}
block_27:
{
if (x_15 == 0)
{
uint32_t x_16; uint8_t x_17; 
x_16 = 95;
x_17 = lean_uint32_dec_eq(x_14, x_16);
if (x_17 == 0)
{
uint32_t x_18; uint8_t x_19; 
x_18 = 39;
x_19 = lean_uint32_dec_eq(x_14, x_18);
if (x_19 == 0)
{
uint32_t x_20; uint8_t x_21; 
x_20 = 33;
x_21 = lean_uint32_dec_eq(x_14, x_20);
if (x_21 == 0)
{
uint32_t x_22; uint8_t x_23; 
x_22 = 63;
x_23 = lean_uint32_dec_eq(x_14, x_22);
if (x_23 == 0)
{
uint8_t x_24; 
x_24 = l_Lean_isLetterLike(x_14);
if (x_24 == 0)
{
uint8_t x_25; 
x_25 = l_Lean_isSubScriptAlnum(x_14);
x_10 = x_25;
goto block_13;
}
else
{
x_10 = x_24;
goto block_13;
}
}
else
{
x_10 = x_23;
goto block_13;
}
}
else
{
x_10 = x_21;
goto block_13;
}
}
else
{
x_10 = x_19;
goto block_13;
}
}
else
{
x_10 = x_17;
goto block_13;
}
}
else
{
lean_object* x_26; 
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_9);
return x_26;
}
}
block_34:
{
if (x_28 == 0)
{
uint32_t x_29; uint8_t x_30; 
x_29 = 48;
x_30 = lean_uint32_dec_le(x_29, x_14);
if (x_30 == 0)
{
x_15 = x_30;
goto block_27;
}
else
{
uint32_t x_31; uint8_t x_32; 
x_31 = 57;
x_32 = lean_uint32_dec_le(x_14, x_31);
x_15 = x_32;
goto block_27;
}
}
else
{
lean_object* x_33; 
x_33 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_33, 0, x_9);
return x_33;
}
}
block_41:
{
if (x_35 == 0)
{
uint32_t x_36; uint8_t x_37; 
x_36 = 97;
x_37 = lean_uint32_dec_le(x_36, x_14);
if (x_37 == 0)
{
x_28 = x_37;
goto block_34;
}
else
{
uint32_t x_38; uint8_t x_39; 
x_38 = 122;
x_39 = lean_uint32_dec_le(x_14, x_38);
x_28 = x_39;
goto block_34;
}
}
else
{
lean_object* x_40; 
x_40 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_40, 0, x_9);
return x_40;
}
}
}
else
{
lean_object* x_46; 
x_46 = lean_box(0);
return x_46;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_1, 2);
x_6 = lean_nat_add(x_4, x_2);
lean_inc(x_5);
lean_inc_ref(x_3);
x_7 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_5);
x_8 = l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3(x_7);
if (lean_obj_tag(x_8) == 1)
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
lean_dec_ref(x_8);
x_10 = lean_nat_add(x_2, x_9);
lean_dec(x_9);
x_11 = lean_nat_dec_lt(x_2, x_10);
lean_dec(x_2);
if (x_11 == 0)
{
lean_dec(x_10);
return x_7;
}
else
{
lean_dec_ref(x_7);
x_2 = x_10;
goto _start;
}
}
else
{
lean_dec(x_8);
lean_dec(x_2);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(uint8_t x_1, lean_object* x_2, uint8_t x_3) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_21; uint8_t x_35; uint32_t x_37; uint8_t x_38; uint32_t x_43; uint8_t x_44; uint32_t x_50; uint8_t x_56; 
if (x_1 == 0)
{
return x_2;
}
else
{
lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_68 = lean_unsigned_to_nat(0u);
x_69 = lean_string_utf8_byte_size(x_2);
x_70 = lean_nat_dec_lt(x_68, x_69);
lean_dec(x_69);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_71 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
x_72 = lean_string_append(x_71, x_2);
lean_dec_ref(x_2);
x_73 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
x_74 = lean_string_append(x_72, x_73);
return x_74;
}
else
{
if (x_3 == 0)
{
uint8_t x_75; uint8_t x_76; uint8_t x_80; uint8_t x_86; uint8_t x_87; 
x_75 = lean_string_get_byte_fast(x_2, x_68);
x_86 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8;
x_87 = lean_uint8_dec_le(x_86, x_75);
if (x_87 == 0)
{
x_80 = x_87;
goto block_85;
}
else
{
uint8_t x_88; uint8_t x_89; 
x_88 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9;
x_89 = lean_uint8_dec_le(x_75, x_88);
x_80 = x_89;
goto block_85;
}
block_79:
{
if (x_76 == 0)
{
uint8_t x_77; uint8_t x_78; 
x_77 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0;
x_78 = lean_uint8_dec_eq(x_75, x_77);
if (x_78 == 0)
{
x_56 = x_78;
goto block_64;
}
else
{
goto block_67;
}
}
else
{
goto block_67;
}
}
block_85:
{
if (x_80 == 0)
{
uint8_t x_81; uint8_t x_82; 
x_81 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6;
x_82 = lean_uint8_dec_le(x_81, x_75);
if (x_82 == 0)
{
x_76 = x_82;
goto block_79;
}
else
{
uint8_t x_83; uint8_t x_84; 
x_83 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7;
x_84 = lean_uint8_dec_le(x_75, x_83);
x_76 = x_84;
goto block_79;
}
}
else
{
goto block_67;
}
}
}
else
{
goto block_12;
}
}
}
block_12:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_string_utf8_byte_size(x_2);
lean_inc_ref(x_2);
x_6 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_6, 0, x_2);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_5);
x_7 = l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg(x_6);
lean_dec_ref(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2;
x_9 = lean_string_append(x_8, x_2);
lean_dec_ref(x_2);
x_10 = l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4;
x_11 = lean_string_append(x_9, x_10);
return x_11;
}
else
{
return x_2;
}
}
block_20:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
lean_inc(x_13);
x_15 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3(x_14, x_13);
lean_dec_ref(x_14);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 2);
lean_inc(x_17);
lean_dec_ref(x_15);
x_18 = lean_nat_sub(x_17, x_16);
lean_dec(x_16);
lean_dec(x_17);
x_19 = lean_nat_dec_eq(x_18, x_13);
lean_dec(x_13);
lean_dec(x_18);
if (x_19 == 0)
{
goto block_12;
}
else
{
return x_2;
}
}
block_24:
{
lean_object* x_22; lean_object* x_23; 
x_22 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3;
x_23 = l_panic___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__5(x_22);
x_13 = x_21;
x_14 = x_23;
goto block_20;
}
block_34:
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_25 = lean_unsigned_to_nat(0u);
x_26 = lean_string_utf8_byte_size(x_2);
lean_inc(x_26);
lean_inc_ref(x_2);
x_27 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_27, 0, x_2);
lean_ctor_set(x_27, 1, x_25);
lean_ctor_set(x_27, 2, x_26);
x_28 = lean_unsigned_to_nat(1u);
x_29 = l_Substring_Raw_nextn(x_27, x_28, x_25);
lean_dec_ref(x_27);
x_30 = lean_string_is_valid_pos(x_2, x_29);
if (x_30 == 0)
{
lean_dec(x_29);
lean_dec(x_26);
x_21 = x_25;
goto block_24;
}
else
{
uint8_t x_31; 
x_31 = lean_string_is_valid_pos(x_2, x_26);
if (x_31 == 0)
{
lean_dec(x_29);
lean_dec(x_26);
x_21 = x_25;
goto block_24;
}
else
{
uint8_t x_32; 
x_32 = lean_nat_dec_le(x_29, x_26);
if (x_32 == 0)
{
lean_dec(x_29);
lean_dec(x_26);
x_21 = x_25;
goto block_24;
}
else
{
lean_object* x_33; 
lean_inc_ref(x_2);
x_33 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_33, 0, x_2);
lean_ctor_set(x_33, 1, x_29);
lean_ctor_set(x_33, 2, x_26);
x_13 = x_25;
x_14 = x_33;
goto block_20;
}
}
}
}
block_36:
{
if (x_35 == 0)
{
goto block_12;
}
else
{
goto block_34;
}
}
block_42:
{
if (x_38 == 0)
{
uint32_t x_39; uint8_t x_40; 
x_39 = 95;
x_40 = lean_uint32_dec_eq(x_37, x_39);
if (x_40 == 0)
{
uint8_t x_41; 
x_41 = l_Lean_isLetterLike(x_37);
x_35 = x_41;
goto block_36;
}
else
{
x_35 = x_40;
goto block_36;
}
}
else
{
goto block_34;
}
}
block_49:
{
if (x_44 == 0)
{
uint32_t x_45; uint8_t x_46; 
x_45 = 97;
x_46 = lean_uint32_dec_le(x_45, x_43);
if (x_46 == 0)
{
x_37 = x_43;
x_38 = x_46;
goto block_42;
}
else
{
uint32_t x_47; uint8_t x_48; 
x_47 = 122;
x_48 = lean_uint32_dec_le(x_43, x_47);
x_37 = x_43;
x_38 = x_48;
goto block_42;
}
}
else
{
goto block_34;
}
}
block_55:
{
uint32_t x_51; uint8_t x_52; 
x_51 = 65;
x_52 = lean_uint32_dec_le(x_51, x_50);
if (x_52 == 0)
{
x_43 = x_50;
x_44 = x_52;
goto block_49;
}
else
{
uint32_t x_53; uint8_t x_54; 
x_53 = 90;
x_54 = lean_uint32_dec_le(x_50, x_53);
x_43 = x_50;
x_44 = x_54;
goto block_49;
}
}
block_64:
{
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_57 = lean_unsigned_to_nat(0u);
x_58 = lean_string_utf8_byte_size(x_2);
lean_inc_ref(x_2);
x_59 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_59, 0, x_2);
lean_ctor_set(x_59, 1, x_57);
lean_ctor_set(x_59, 2, x_58);
x_60 = l_String_Slice_Pos_get_x3f(x_59, x_57);
lean_dec_ref(x_59);
if (lean_obj_tag(x_60) == 0)
{
uint32_t x_61; 
x_61 = 65;
x_50 = x_61;
goto block_55;
}
else
{
lean_object* x_62; uint32_t x_63; 
x_62 = lean_ctor_get(x_60, 0);
lean_inc(x_62);
lean_dec_ref(x_60);
x_63 = lean_unbox_uint32(x_62);
lean_dec(x_62);
x_50 = x_63;
goto block_55;
}
}
else
{
return x_2;
}
}
block_67:
{
lean_object* x_65; uint8_t x_66; 
x_65 = lean_unsigned_to_nat(1u);
x_66 = l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest(x_2, x_65);
x_56 = x_66;
goto block_64;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0(x_1, x_2, x_3);
lean_dec_ref(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; 
x_9 = lean_unbox(x_2);
x_10 = lean_unbox(x_6);
x_11 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0(x_1, x_9, x_3, x_4, x_5, x_10, x_7, x_8);
lean_dec_ref(x_1);
x_12 = lean_box(x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0(x_1, x_2);
lean_dec_ref(x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0___redArg(x_1, x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0___redArg(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_4);
x_7 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__0_spec__0_spec__0___redArg(x_1, x_5, x_3, x_6);
lean_dec_ref(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_String_Slice_Pattern_ForwardPattern_defaultDropPrefix_x3f___at___00__private_Init_Data_String_Slice_0__String_Slice_dropWhile_go___at___00__private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape_spec__3_spec__3(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; uint8_t x_5; lean_object* x_6; 
x_4 = lean_unbox(x_1);
x_5 = lean_unbox(x_3);
x_6 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_4, x_2, x_5);
return x_6;
}
}
LEAN_EXPORT uint8_t l_Lean_Name_toStringWithSep___lam__0(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = 0;
return x_2;
}
}
static lean_object* _init_l_Lean_Name_toStringWithSep___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[anonymous]", 11, 11);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___lam__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Name_toStringWithSep___lam__0(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_5; 
lean_dec_ref(x_4);
x_5 = l_Lean_Name_toStringWithSep___closed__0;
return x_5;
}
case 1:
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_7);
lean_dec_ref(x_3);
lean_inc_ref(x_7);
x_8 = lean_apply_1(x_4, x_7);
x_9 = lean_unbox(x_8);
x_10 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_2, x_7, x_9);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; 
lean_inc(x_6);
x_11 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_11);
lean_dec_ref(x_3);
lean_inc_ref(x_4);
x_12 = l_Lean_Name_toStringWithSep(x_1, x_2, x_6, x_4);
x_13 = lean_string_append(x_12, x_1);
x_14 = 0;
lean_inc_ref(x_11);
x_15 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_2, x_11, x_14);
lean_inc_ref(x_13);
x_16 = lean_string_append(x_13, x_15);
lean_dec_ref(x_15);
if (x_2 == 0)
{
lean_dec_ref(x_13);
lean_dec_ref(x_11);
lean_dec_ref(x_4);
return x_16;
}
else
{
lean_object* x_17; uint8_t x_18; 
lean_inc_ref(x_16);
x_17 = lean_apply_1(x_4, x_16);
x_18 = lean_unbox(x_17);
if (x_18 == 0)
{
lean_dec_ref(x_13);
lean_dec_ref(x_11);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; 
lean_dec_ref(x_16);
x_19 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_2, x_11, x_2);
x_20 = lean_string_append(x_13, x_19);
lean_dec_ref(x_19);
return x_20;
}
}
}
}
default: 
{
lean_object* x_21; 
lean_dec_ref(x_4);
x_21 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_3, 1);
lean_inc(x_22);
lean_dec_ref(x_3);
x_23 = l_Nat_reprFast(x_22);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_inc(x_21);
x_24 = lean_ctor_get(x_3, 1);
lean_inc(x_24);
lean_dec_ref(x_3);
x_25 = lean_alloc_closure((void*)(l_Lean_Name_toStringWithSep___lam__0___boxed), 1, 0);
x_26 = l_Lean_Name_toStringWithSep(x_1, x_2, x_21, x_25);
x_27 = lean_string_append(x_26, x_1);
x_28 = l_Nat_reprFast(x_24);
x_29 = lean_string_append(x_27, x_28);
lean_dec_ref(x_28);
return x_29;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_Name_toStringWithSep(x_1, x_5, x_3, x_4);
lean_dec_ref(x_1);
return x_6;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\?", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("#", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; uint8_t x_4; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1;
x_3 = lean_name_eq(x_1, x_2);
x_4 = 1;
if (x_3 == 0)
{
lean_object* x_5; 
x_5 = l_Lean_Name_getRoot(x_1);
if (lean_obj_tag(x_5) == 1)
{
lean_object* x_6; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_6);
lean_dec_ref(x_5);
x_14 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4;
x_15 = lean_string_utf8_byte_size(x_6);
x_16 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5;
x_17 = lean_nat_dec_le(x_16, x_15);
lean_dec(x_15);
if (x_17 == 0)
{
goto block_13;
}
else
{
lean_object* x_18; uint8_t x_19; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_string_memcmp(x_6, x_14, x_18, x_18, x_16);
if (x_19 == 0)
{
goto block_13;
}
else
{
lean_dec_ref(x_6);
return x_4;
}
}
block_13:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_7 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2;
x_8 = lean_string_utf8_byte_size(x_6);
x_9 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3;
x_10 = lean_nat_dec_le(x_9, x_8);
lean_dec(x_8);
if (x_10 == 0)
{
lean_dec_ref(x_6);
return x_3;
}
else
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_string_memcmp(x_6, x_7, x_11, x_11, x_9);
lean_dec_ref(x_6);
return x_12;
}
}
}
else
{
lean_dec(x_5);
return x_3;
}
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_toStringWithToken___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Name_toStringWithToken___closed__0;
if (x_2 == 0)
{
lean_object* x_5; 
x_5 = l_Lean_Name_toStringWithSep(x_4, x_2, x_1, x_3);
return x_5;
}
else
{
uint8_t x_6; 
lean_inc(x_1);
x_6 = lean_is_inaccessible_user_name(x_1);
if (x_6 == 0)
{
uint8_t x_7; 
x_7 = l_Lean_Name_hasMacroScopes(x_1);
if (x_7 == 0)
{
uint8_t x_8; 
x_8 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax(x_1);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = l_Lean_Name_toStringWithSep(x_4, x_2, x_1, x_3);
return x_9;
}
else
{
lean_object* x_10; 
x_10 = l_Lean_Name_toStringWithSep(x_4, x_7, x_1, x_3);
return x_10;
}
}
else
{
lean_object* x_11; 
x_11 = l_Lean_Name_toStringWithSep(x_4, x_6, x_1, x_3);
return x_11;
}
}
else
{
uint8_t x_12; lean_object* x_13; 
x_12 = 0;
x_13 = l_Lean_Name_toStringWithSep(x_4, x_12, x_1, x_3);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Name_toStringWithToken(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_4; 
x_4 = l_Lean_Name_toStringWithSep___closed__0;
return x_4;
}
case 1:
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; uint8_t x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_6);
lean_dec_ref(x_3);
x_7 = 0;
x_8 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_2, x_6, x_7);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
lean_inc(x_5);
x_9 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_9);
lean_dec_ref(x_3);
x_10 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_1, x_2, x_5);
x_11 = lean_string_append(x_10, x_1);
x_12 = 0;
x_13 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithSep_maybeEscape(x_2, x_9, x_12);
x_14 = lean_string_append(x_11, x_13);
lean_dec_ref(x_13);
return x_14;
}
}
default: 
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_3, 0);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_3, 1);
lean_inc(x_16);
lean_dec_ref(x_3);
x_17 = l_Nat_reprFast(x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
lean_inc(x_15);
x_18 = lean_ctor_get(x_3, 1);
lean_inc(x_18);
lean_dec_ref(x_3);
x_19 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_1, x_2, x_15);
x_20 = lean_string_append(x_19, x_1);
x_21 = l_Nat_reprFast(x_18);
x_22 = lean_string_append(x_20, x_21);
lean_dec_ref(x_21);
return x_22;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Name_toStringWithToken___closed__0;
if (x_2 == 0)
{
lean_object* x_4; 
x_4 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_3, x_2, x_1);
return x_4;
}
else
{
uint8_t x_5; 
lean_inc(x_1);
x_5 = lean_is_inaccessible_user_name(x_1);
if (x_5 == 0)
{
uint8_t x_6; 
x_6 = l_Lean_Name_hasMacroScopes(x_1);
if (x_6 == 0)
{
uint8_t x_7; 
x_7 = l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax(x_1);
if (x_7 == 0)
{
lean_object* x_8; 
x_8 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_3, x_2, x_1);
return x_8;
}
else
{
lean_object* x_9; 
x_9 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_3, x_6, x_1);
return x_9;
}
}
else
{
lean_object* x_10; 
x_10 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_3, x_5, x_1);
return x_10;
}
}
else
{
uint8_t x_11; lean_object* x_12; 
x_11 = 0;
x_12 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_3, x_11, x_1);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toString(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toString___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lean_Name_toString(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Name_toStringWithSep___at___00Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0_spec__0(x_1, x_4, x_3);
lean_dec_ref(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Name_instToString___lam__0(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = 1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Name_instToString() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Name_instToString___lam__0), 1, 0);
return x_1;
}
}
lean_object* initialize_Init_Data_String_Substring(uint8_t builtin);
lean_object* initialize_Init_Data_String_TakeDrop(uint8_t builtin);
lean_object* initialize_Init_Data_String_Search(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Init_Data_ToString_Name(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init_Data_String_Substring(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_TakeDrop(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Search(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__0();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__1 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__1();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__2 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__2();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__3 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__3();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__4 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__4();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__5 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__5();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__6();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__7();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__8();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscapeAsciiRest___closed__9();
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__0);
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__1);
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__2);
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__3);
l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_needsNoEscape___closed__4);
l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__0 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__0();
l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__1);
l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__2);
l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__3 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__3();
l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_escape___closed__4);
l_Lean_Name_escapePart___closed__0 = _init_l_Lean_Name_escapePart___closed__0();
lean_mark_persistent(l_Lean_Name_escapePart___closed__0);
l_Lean_Name_escapePart___closed__1 = _init_l_Lean_Name_escapePart___closed__1();
lean_mark_persistent(l_Lean_Name_escapePart___closed__1);
l_Lean_Name_escapePart___closed__2 = _init_l_Lean_Name_escapePart___closed__2();
lean_mark_persistent(l_Lean_Name_escapePart___closed__2);
l_Lean_Name_toStringWithSep___closed__0 = _init_l_Lean_Name_toStringWithSep___closed__0();
lean_mark_persistent(l_Lean_Name_toStringWithSep___closed__0);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__0);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__1);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__2);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__3);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__4);
l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5 = _init_l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5();
lean_mark_persistent(l___private_Init_Data_ToString_Name_0__Lean_Name_toStringWithToken_maybePseudoSyntax___closed__5);
l_Lean_Name_toStringWithToken___closed__0 = _init_l_Lean_Name_toStringWithToken___closed__0();
lean_mark_persistent(l_Lean_Name_toStringWithToken___closed__0);
l_Lean_Name_instToString = _init_l_Lean_Name_instToString();
lean_mark_persistent(l_Lean_Name_instToString);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
